import request from '../request'
import requestParam from '../requestParam'
import requestUrl from '../requestUrl'

// 登录
export function login (params) {
    return request({
        url: requestUrl('/common/login'),
        method: 'post',
        data: requestParam(params, 'post', false)
    })
}

// 获取菜单列表
export function getMenuList() {
    return request({
        url: requestUrl('/menu/list'),
        method: 'get',
        params: requestParam({}, 'get')
    })
}